package yaner.hotel.manager.resource.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import yaner.hotel.manager.common.dto.order.OrderAddDto;
import yaner.hotel.manager.common.dto.order.OrderUpdateDto;
import yaner.hotel.manager.common.vo.OrderVo;
import yaner.hotel.manager.resource.entity.Order;

@Mapper
public interface IOrderMapper {
    IOrderMapper INSTANCE = Mappers.getMapper(IOrderMapper.class);

    OrderVo toVo(Order order);

    Order toAddEntity(OrderAddDto orderAddDto);

    Order toUpdateEntity(OrderUpdateDto orderUpdateDto);
}
